import java.util.function.Consumer;

/**
 * @author zhu
 * @date 2024-04-10
 */
public class MainTest {
    public static void Judge(double score, Consumer<Double> consumer){
        consumer.accept(score);
    }
    public static void main(String[] args) {
        Judge(80.0,(score) -> {
            if (score >= 60){
                System.out.println("合格");
            }else {
                System.out.println("不合格");
            }
        });
    }
}
